package com.steve.xfood.dataobject.dao;

import com.steve.xfood.dataobject.mapper.ProductCategoryMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Map;

/**
 * 对mapper的封装
 * @author steve
 * @date 2020/5/30 6:33 上午
 */
public class ProductCategoryDao {

    @Autowired
    private ProductCategoryMapper mapper;

    /**
     * 插入类目（通过对象）
     * @param map
     * @return
     */
    public int insertByMap(Map<String, Object> map) {
        return mapper.insertByMap(map);
    }
}
